﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace TheoriesBraun.DAL
{
    class DBConnect
    {
        public static SqlConnection getConnection()
        {
            try
            {
                string constr = "Server=localhost;Database=Braun;User Id=sa;password=123";
                SqlConnection conn = new SqlConnection(constr);
                conn.Open();
                return conn;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
